import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 新增修改分类多条属性值
export const findAttributeValueListPage = query => {
    return request({
        url: baseRequest_url+'/admin/product/attributeValue/findAttributeValueListPage/',
        method: 'get',
		params: query,
    });
};
// 新增修改分类多条属性值
export const findAttributeValueListByAttrId = query => {
    return request({
        url: baseRequest_url+'/admin/product/attributeValue/findAttributeValueListByAttrId/',
        method: 'get',
		params: query,
    });
};
// 新增修改分类多条属性值
export const findAttributeValueInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/product/attributeValue/findAttributeValueInfoById/' + query,
        method: 'get',
    });
};
// 新增分类属性值
export const addAttributeValue = data => {
    return request({
        url: baseRequest_url+'/admin/product/attributeValue/saveAttributeValue/',
        method: 'post',
		data: data,
    });
};
// 编辑分类属性值
export const saveAttributeValue = data => {
    return request({
        url: baseRequest_url+'/admin/product/attributeValue/saveAttributeValue/',
        method: 'put',
		data: data,
    });
};
// 删除分类属性值
export const deleteAttributeValue = data => {
    return request({
        url: baseRequest_url+'/admin/product/attributeValue/deleteAttributeValue/'+data,
        method: 'delete',
    });
};
// 新增修改分类多条属性值
export const batchSaveAttributeValueList = data => {
    return request({
        url: baseRequest_url+'/admin/product/attributeValue/batchSaveAttributeValueList/',
        method: 'post',
		data: data,
    });
};
